package com.yanwq.nwa.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Author dodoca_android.
 * Date 2017/4/24.
 */

@Entity
public class Message {
    @Id
    private Long id;
    @NotNull
    private Integer type;
    @NotNull
    private String from_uuid;
    @NotNull
    private String to_uuid;
    @NotNull
    private String content;
    @Generated(hash = 1396994282)
    public Message(Long id, @NotNull Integer type, @NotNull String from_uuid,
            @NotNull String to_uuid, @NotNull String content) {
        this.id = id;
        this.type = type;
        this.from_uuid = from_uuid;
        this.to_uuid = to_uuid;
        this.content = content;
    }
    @Generated(hash = 637306882)
    public Message() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Integer getType() {
        return this.type;
    }
    public void setType(Integer type) {
        this.type = type;
    }
    public String getFrom_uuid() {
        return this.from_uuid;
    }
    public void setFrom_uuid(String from_uuid) {
        this.from_uuid = from_uuid;
    }
    public String getTo_uuid() {
        return this.to_uuid;
    }
    public void setTo_uuid(String to_uuid) {
        this.to_uuid = to_uuid;
    }
    public String getContent() {
        return this.content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    
}
